import request from '@/utils/request'

const baseURL = '/api/chart'

// 获取销售趋势数据
export const getSalesTrend = (params) => {
  return request.get(`${baseURL}/salesTrend`, { params })
}

// 获取商品类别销售额数据
export const getCategorySales = () => {
  return request.get(`${baseURL}/categorySales`)
} 